Skip to content

compiletest: Don't modify testpaths when creating aux contexts#148199

Merged
bors merged 4 commits intorust-lang:masterfrom
Zalathar:paths
Nov 2, 2025
Merged

compiletest: Don't modify testpaths when creating aux contexts#148199
bors merged 4 commits intorust-lang:masterfrom
Zalathar:paths

Conversation

@Zalathar
Copy link
Copy Markdown
Member

Modifying TestCx::testpaths makes it vastly harder to reason about how compiletest is using test paths, and can be avoided without much trouble by simply passing explicit source-file paths into a small number of auxiliary-aware methods.


This PR was originally based on a much larger change that split TestPaths into multiple structs and multiple TestCx fields (as seen in early revisions of #148160), but after further cleanups it turned out that very few tweaks were actually needed to avoid changes to testpaths.

r? jieyouxu

Loading
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

A-compiletest Area: The compiletest test runner A-testsuite Area: The testsuite used to check the correctness of rustc S-waiting-on-author Status: This is awaiting some action (such as code changes or more information) from the author. T-bootstrap Relevant to the bootstrap subteam: Rust's build system (x.py and src/bootstrap) T-compiler Relevant to the compiler team, which will review and decide on the PR/issue.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants